<template>
  <div class="controls">
    <div class="controls-content">
      <div class="controls-list">
        <span class="controls-label">时间：</span>
        <input type="text" v-model="formData.time">
      </div>
      <div class="controls-list">
        <span class="controls-label">文字：</span>
        <input type="text" v-model="formData.text">
      </div>
      <div class="controls-list">
        <span class="controls-label">特别文字：</span>
        <input type="text" v-model="formData.specialText">
      </div>
      <div class="controls-btn">
        <button>关闭</button>
      </div>
    </div>
  </div>
</template>

<script setup>
  import { ref } from 'vue'

  const formData = ref({})
</script>

<style scoped>
  .controls {
    box-sizing: border-box;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9;
    padding: 20px;
  }
  .controls-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 100%;
    background: #fff;
  }
  .controls-list {
    margin: 50px 0;
  }
  .controls-label {
    display: inline-block;
    width: 100px;
    text-align: right;
  }
  .controls-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 50px;
    line-height: 50px;
    color: red;
    text-align: center;
  }
  .controls-btn button {
    padding: 5px 20px;
    background: aquamarine;
    font-size: 16px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #04fca8;
    box-shadow: none;
  }
  .controls-btn button:hover {
    cursor: pointer;
    background: #14fdaf;
  }
</style>
